//package io.archx.txblog.web.controller
//
//import com.alibaba.nacos.api.annotation.NacosInjected
//import com.alibaba.nacos.api.naming.NamingService
//import com.alibaba.nacos.api.naming.pojo.Instance
//import io.archx.txblog.common.web.Result
//import io.swagger.annotations.Api
//import io.swagger.annotations.ApiImplicitParam
//import io.swagger.annotations.ApiImplicitParams
//import io.swagger.annotations.ApiOperation
//import org.springframework.web.bind.annotation.*
//
//@RestController
//@RequestMapping("/discovery")
//@Api(tags = ["注册服务"])
//class DiscoveryController( @NacosInjected
//                           val namingService: NamingService){
////
////    lateinit
//
//    @GetMapping("/get")
//    @ApiOperation("获取服务状态", notes = "获取服务状态", response = Instance::class, responseContainer = "Result")
//    @ApiImplicitParams(
//      ApiImplicitParam("服务名", name = "serviceName ", required = false)
//    )
//    fun get(@RequestParam("serviceName", required = false) serviceName: String?): Result<List<Instance>> {
//        return Result.ok(namingService.getAllInstances(serviceName))
//    }
//}